- javascript('fullcalendar/src/_loader')
- stylesheet('fullcalendar_overrides')

%style{:type => "text/css"}
  :plain
    #{tipo_assenza_stylesheet}

#calendar{:style => "width:900px;margin: 15px auto 0;"}

%script{:type => "text/javascript"}
  $('#calendar').fullCalendar({
  header: {
  left: 'prev,next today',
  center: 'title',
  right: 'month,basicWeek,basicDay'
  -#right: 'month,basicWeek,basicDay,agendaWeek,agendaDay'
  },
  defaultView: 'month',
  editable: false,
  events: [ 
  - @events.each do |e|
    = send(e)
  ]
  });
